Skip to content

Add start_value for json_grammar#165

Merged
shubhamugare merged 1 commit intostructuredllm:mainfrom
HJJ256:patch-4
Mar 20, 2025
Merged

Add start_value for json_grammar#165
shubhamugare merged 1 commit intostructuredllm:mainfrom
HJJ256:patch-4

Conversation

@HJJ256
Copy link
Copy Markdown
Contributor

@HJJ256 HJJ256 commented Mar 19, 2025

The JSON start_values are limited to objects and arrays. Although number, boolean and null strings are also valid JSON, there is no practical use for including them as a start_value

The JSON start_values are limited to objects and arrays. Although number/boolean/null strings are also valid JSON, there is no practical use for including them as a start_value
@shubhamugare
Copy link
Copy Markdown
Collaborator

Makes sense. We can include full JSON grammar as separate grammar with name json_full if anyone cares for it.

@shubhamugare shubhamugare merged commit df444cf into structuredllm:main Mar 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants